/**
 * create by young (young2f@outlook.com) on 2020/10/1
 */
'use strict';
import React, { Component } from 'react';

import { Input, Upload, Button,Divider } from 'antd';
import { FormField, FormLayout } from 'antd-extra';

const { TextArea } = Input;

export default class Memo extends Component {
  constructor(props) {
    super(props);
    this.state = {};
  }

  componentWillUnmount() {

  }

  render() {
    const { form,cols,memo } = this.props;
    const _cols=cols?cols:2
    return (
      <div>
        <Divider orientation="left"></Divider>
        <FormLayout form={form} cols={_cols}>
          <FormField
            label={'留言'}
            name={'memo'}
            initialValue={memo}
          >
            <TextArea
              autoSize={{ minRows: 3, maxRows: 5 }}>
            </TextArea>
          </FormField>
          <FormField
            label={'附件'}
            name={'enclosure'}
          >
            <Upload>
              <Button >上传附件</Button>
            </Upload>
          </FormField>
        </FormLayout>

      </div>
    );
  }
}
